home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11872 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: druid.borland.com!usenet
  2. From: pete@borland.com (Pete Becker)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: COOL: Something you can do in "C" you can NOT do in "C++"
  5. Date: 16 Mar 1996 20:27:42 GMT
  6. Organization: Borland International
  7. Distribution: na
  8. Message-ID: <4if87u$rkm@druid.borland.com>
  9. References: <4hpov3$krb@qualcomm.com> <4i3123$etb@clarknet.clark.net> <4i4dep$bo1@lib104.its.rpi.edu>
  10. NNTP-Posting-Host: pbecker.borland.com
  11. Mime-Version: 1.0
  12. Content-Type: Text/Plain; charset=ISO-8859-1
  13. X-Newsreader: WinVN 0.99.5
  14.  
  15. In article <4i4dep$bo1@lib104.its.rpi.edu>, floydb1@lib104.its.rpi.edu says...
  16. >
  17. >
  18. >In article <4i3123$etb@clarknet.clark.net>, gusty@clark.net (Harlan Messinger) 
  19. writes:
  20. >|> Frank Merrow (fmerrow@wizard.qualcomm.com) wrote:
  21. >|> : Hi,
  22. >|> : 
  23. >|> : I am teaching myself C++, but my interest in the language just dropped.
  24. >|> : I want to read cin as a binary file and output cout the same as well.  I 
  25. read
  26. >|> : the FAQs on C++ and guess what YOU CAN'T DO IT.
  27. >|> : 
  28. >|> 
  29. >|> Seeing as how C doesn't even _have_ cin or cout, I don't understand your 
  30. >|> point.
  31. >
  32. >
  33. >Seems the point concerns 'binary' not 'cin/cout'. 'binary' i/o seems
  34. >to be system-specific. I vaguely recall reading something about 
  35. >CR/LF interpretation on UNIX systems, where the CR/LF was not converted
  36. >in 'binary' i/o. Under MS-DOS 'binary' is something else. 
  37.  
  38. This is basically true in both C and C++. In both cases, the details of how the 
  39. "binary" file is written are system dependent, but the meaning of operations on 
  40. binary files is well defined and portable. The files themselves are not 
  41. portable in either language.
  42.  
  43.